package com.caifu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caifu.excel.ExcelMedicine;
import com.caifu.pojo.YlUserMedicine;
import com.caifu.vo.YlUserMedicineVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户药物表 Mapper 接口
 * </p>
 *
 * @author GZ
 * @since 2020-11-06
 */
public interface YlUserMedicineMapper extends BaseMapper<YlUserMedicine> {

    /**
     * 获取用量预警、有效期预警
     *
     * @return
     */
    List<YlUserMedicineVo> getWarningList(Map<String,Object> map);

    /**
     * 根据老人id 获取老人登记药物
     * @param userNo
     * @return
     */
    List<ExcelMedicine> getExcelData(String userNo);
}
